﻿<Window xmlns:my="clr-namespace:System.Windows.Controls;assembly=PresentationFramework" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="GlucometerPrototype.Glucometer"
        Title="Glucometer" Height="424" Width="559" mc:Ignorable="d" Background="Transparent" Loaded="Window_Loaded" AllowsTransparency="False" Topmost="True" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize" Icon="/GlucometerPrototype;component/Glucometer.ico">
	<Grid Name="grid_main"  MouseLeftButtonDown="Grid_MouseLeftButtonDown">
        <Label Content="Group 6" Name="label_background" VerticalContentAlignment="Top" HorizontalContentAlignment="Right" Margin="0" Padding="0,10,20,0" FontFamily="Segoe Script" FontSize="16" FontWeight="Bold" Foreground="Red" />
        <Image x:Name="image_testStrip" Stretch="Fill" Source="/GlucometerPrototype;component/Images/testStrip.png" Margin="105,8,0,0" HorizontalAlignment="Left" Width="31" d:LayoutOverrides="VerticalAlignment" RenderTransformOrigin="1.462,0.511" Height="72" VerticalAlignment="Top" Visibility="Hidden" />
		<Grid Margin="17,63,0,0" HorizontalAlignment="Left" Width="220" Height="305" VerticalAlignment="Top">
			<Image Margin="-3.08,0.398,0,0" x:Name="image_main" Stretch="Fill" Source="/GlucometerPrototype;component/Images/main.png"/>
            <Grid Margin="30,91,0,0" x:Name="grid_screen" HorizontalAlignment="Left" Width="154" Height="120.65" VerticalAlignment="Top">
                <Image Margin="6" x:Name="image1" Stretch="Fill" Source="/GlucometerPrototype;component/Images/screen.png" />
                <StackPanel Margin="6,8,8,8">
                	<StackPanel x:Name="stackPanel_status" Height="16" Margin="8,0" Orientation="Horizontal">
                		<Image x:Name="image_batteryLevel" HorizontalAlignment="Left" Width="20" Height="11" Source="/GlucometerPrototype;component/Images/batteryLevel0.png" Visibility="Hidden" />
		                <Image x:Name="image_ACStatus" Margin="10,0,0,0" HorizontalAlignment="Left" Width="22" Height="15" Source="/GlucometerPrototype;component/Images/ACStatus.png" Visibility="Hidden" />
		                <Image x:Name="image_USBStatus" Margin="40,0,0,0" HorizontalAlignment="Right" Width="17" Height="13" Source="/GlucometerPrototype;component/Images/USBStatus.png" Visibility="Hidden" />
		                <Image x:Name="image_errorStatus" HorizontalAlignment="Right" Width="17" Height="12" Source="/GlucometerPrototype;component/Images/ErrorStatus.png" Visibility="Hidden" />
                	</StackPanel>
					<StackPanel x:Name="stackPanel_testResult" Height="52" Orientation="Horizontal">
						<Image x:Name="image_result1" Margin="30,0,0,0" Width="20" Source="/GlucometerPrototype;component/Images/0.png" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
							<Image.RenderTransform>
								<TransformGroup>
									<ScaleTransform/>
									<SkewTransform AngleX="-10"/>
									<RotateTransform/>
									<TranslateTransform/>
								</TransformGroup>
							</Image.RenderTransform>
						</Image>
						<Image x:Name="image_result2" Margin="5,0,0,0" Width="20" Source="/GlucometerPrototype;component/Images/0.png" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
							<Image.RenderTransform>
								<TransformGroup>
									<ScaleTransform/>
									<SkewTransform AngleX="-10"/>
									<RotateTransform/>
									<TranslateTransform/>
								</TransformGroup>
							</Image.RenderTransform>
						</Image>
						<Image x:Name="image_resultDot" Margin="0,0,0,7" Height="8" Width="16" Source="/GlucometerPrototype;component/Images/point.png" VerticalAlignment="Bottom" Visibility="Hidden" />
						<Image x:Name="image_result3" Margin="0" Width="20" Source="/GlucometerPrototype;component/Images/0.png" RenderTransformOrigin="0.5,0.5" Visibility="Hidden">
							<Image.RenderTransform>
								<TransformGroup>
									<ScaleTransform/>
									<SkewTransform AngleX="-10"/>
									<RotateTransform/>
									<TranslateTransform/>
								</TransformGroup>
							</Image.RenderTransform>
						</Image>
						<Image x:Name="image_resultUnit" Margin="0,0,0,7" Height="15" Width="30" Source="/GlucometerPrototype;component/Images/unitL.png" VerticalAlignment="Bottom" Visibility="Hidden" />
					</StackPanel>
					<StackPanel x:Name="stackPanel_progressiveBar" Height="16" Orientation="Horizontal">
						<Image Margin="1" VerticalAlignment="Center" HorizontalAlignment="Left" Width="22" Height="15" Source="/GlucometerPrototype;component/Images/progressBar.png" Visibility="Hidden" Name="image_progressiveBar" />
					</StackPanel>
					<StackPanel x:Name="stackPanel_dateTime" Height="16" Orientation="Horizontal">
		                <TextBlock Margin="15,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="15" Height="15" Text="01" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_date_month" TextAlignment="Center" FlowDirection="LeftToRight" />
						<TextBlock Margin="1,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="5" Height="15" Text="/" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_date_separator1" TextAlignment="Center" />
		                <TextBlock Margin="1,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="15" Height="15" Text="05" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_date_day" TextAlignment="Center" FlowDirection="LeftToRight" />
		                <TextBlock Margin="1,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Width="5" Height="15" Text="/" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_date_separator2" TextAlignment="Center" />
						<TextBlock Margin="1,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="15" Height="15" Text="10" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_date_year" TextAlignment="Center" FlowDirection="LeftToRight" />
		                <TextBlock Margin="10,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="15" Height="15" Text="20" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_time_hour" TextAlignment="Center" FlowDirection="LeftToRight" />
						<TextBlock Margin="1,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="5" Height="15" Text=":" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_time_separator1" TextAlignment="Center" />
		                <TextBlock Margin="1,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="15" Height="15" Text="19" TextWrapping="Wrap" Visibility="Hidden" Name="textBlock_time_minute" TextAlignment="Center" FlowDirection="LeftToRight" />
					</StackPanel>
                </StackPanel>
            </Grid>
            <Button Margin="83,0,89,50" x:Name="button_main" Height="29" VerticalAlignment="Bottom" Cursor="Hand" MouseDown="button_main_MouseDown" Click="button_main_Click" Background="Orange" Focusable="False" MouseDoubleClick="button_main_MouseDoubleClick"></Button>
        </Grid>
        <StackPanel Height="313" Margin="247,58,12,0" Name="stackPanel_description" VerticalAlignment="Top" Background="Transparent" MouseLeftButtonDown="stackPanel_description_MouseLeftButtonDown">
            <StackPanel Name="stackPanel1">
                <TextBlock Height="40" Name="textBlock1" Text="Interface &amp; Status:" VerticalAlignment="Center" HorizontalAlignment="Stretch" FontStretch="Normal" FontWeight="Bold" FontFamily="Segoe Print" FontSize="22" Margin="0,5,0,10" />
                <StackPanel Name="stackPanel_USB_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock2" Text="USB:" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_USB_Status" Text="Not Connected" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="3,0,0,0" Background="Khaki" Padding="5,0" />
                    <Button Content="Plug" Name="button_USB_plug" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" Click="button_USB_plug_Click" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Pluck" Name="button_USB_pluck" HorizontalAlignment="Left" VerticalAlignment="Center" Click="button_USB_pluck_Click" Visibility="Collapsed" Margin="5,0,0,0" FontFamily="STXinwei" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_AC_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock4" Text="AC Plug-in:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_AC_Status" Text="Not Connected" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3,0,0,0" Background="Khaki" Padding="5,0" />
                    <Button Content="Plug" Name="button_AC_plug" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_AC_plug_Click" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Pluck" Name="button_AC_pluck" HorizontalAlignment="Left" VerticalAlignment="Center" Click="button_AC_pluck_Click" Visibility="Collapsed" Margin="5,0,0,0" FontFamily="STXinwei" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_testStrip_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock3" Text="Test Strip:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_TestStrip_Status" Text="Not Inserted" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3,0,0,0" Background="Khaki" Padding="5,0" />
                    <Button Content="Insert" Name="button_TestStrip_insert" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_TestStrip_insert_Click" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Pluck" Name="button_TestStrip_pluck" HorizontalAlignment="Left" VerticalAlignment="Center" Click="button_TestStrip_pluck_Click" Visibility="Collapsed" Margin="5,0,0,0" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Feed" Name="button_TestStrip_Feed" HorizontalAlignment="Left" VerticalAlignment="Center" Visibility="Collapsed" Margin="5,0,0,0" FontFamily="STXinwei" Click="button_TestStrip_Feed_Click" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_error_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock_error" Text="Error:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_Error_Status" Text="Null" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3,0,0,0" Background="Khaki" Padding="5,0" />
                    <Button Content="Make Error" Name="button_Error_Make" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_Error_Make_Click" FontFamily="STXinwei" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_button_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock5" Text="Button:" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_Button_Status" Text="Idle" Margin="3,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Background="Khaki" Padding="5,0" />
                    <Button Content="Short" Name="button_button_short" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_button_short_Click" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Long" Name="button_button_long" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_button_long_Click" FontFamily="STXinwei" FontSize="13" />
                    <Button Content="Double" Name="button_button_double" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_button_double_Click" FontFamily="STXinwei" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_beep_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock6" Text="Beep:" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_Beep_Status" Text="Idle" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="3,0,0,0" Background="Khaki" Padding="5,0" />
                </StackPanel>
                <StackPanel Name="stackPanel_progressiverBar_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock7" Text="ProgressiveBar:" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_ProgressiveBar_Status" Text="Idle" Margin="3,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Background="Khaki" Padding="5,0" />
                    <Button Content="Move" Name="button_progressiveBar_move" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Click="button_progressiveBar_move_Click" FontFamily="STXinwei" FontSize="13" />
                </StackPanel>
                <StackPanel Name="stackPanel_setting_status" Orientation="Horizontal">
                    <TextBlock Name="textBlock8" Text="Setting:" Margin="2" FontWeight="Bold" FontFamily="Segoe Print" FontSize="14" />
                    <TextBlock Name="textBlock_Setting_Status" Text="Null" Margin="3,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Background="Khaki" Padding="5,0" />
                </StackPanel>
                <StackPanel Name="stackPanel_empty" Orientation="Horizontal" Height="10">
                </StackPanel>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
